package itsm.isperp.module.controller.incident;

import itsm.isperp.module.service.incident.IcdIncidentService;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * 
 * 
 * 
 * @author lizx
 * @date 2015-4-19
 * @since 1.0
 * 
 */
@Controller
@RequestMapping("incident/serviceStar")
public class IcdServiceStarController {

	@Autowired
	protected IcdIncidentService icdIncidentService;

	@RequestMapping("view")
	public ModelAndView view(HttpServletRequest req) {
		ModelAndView mv = new ModelAndView();

		mv.setViewName("incident/serviceStar/view");

		List<Map<String, Object>> solvers = icdIncidentService
				.findSolverSatisfaction();
		mv.addObject("solvers", solvers);
		return mv;

	}
}
